<%@page import="com.conversationboard.config.*" %>
<%@page import="com.conversationboard.model.StyleSheets"%>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<%@page import="com.conversationboard.controller.confirm.Confirm"%>
<%@page import="com.conversationboard.view.MainMenu"%>

<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Clear Caches</title>
		<link rel="stylesheet"title="Conversation Board" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>
	
		<div class="headingblock">
			<h1>Clear Caches</h1>
		</div>

		<div class="mainblock">

			<p><strong>Please don't use this function without knowing what it does.</strong></p>
			
			<br />

			<form class="formsection" action="<%=Configuration.getInstance().getRoot()%>/Admin/AdminClearCachesControllerServlet" method="post">

			 	<%= Confirm.getKey(request.getUserPrincipal().getName()) %>

				<p>Please select the caches you wish to clear:</p>
			 	
				<p>				
					<label for='checkbox'>New Answers Cache:</label>
					<input type='checkbox' name='newanswers' value='true' />
					
					<label for='boardid'>for this board ID:</label>
					<input class="tinytextbox" type="text" name="boardid" />
					<br />

					<label for='checkbox'>Clear all New Answers Caches:</label>
					<input type='checkbox' name='allnewanswers' value='true' />
					<br />
					
					<label for='checkbox'>Thread Cache:</label>
					<input type='checkbox' name='thread' value='true' />
					<br />

					<label for='checkbox'>Ban Vote Cache:</label>
					<input type='checkbox' name='banvote' value='true' />
					<br />

					<label for='checkbox'>User Cache:</label>
					<input type='checkbox' name='user' value='true' />
					<br />

					<label for='checkbox'>Voter Cache:</label>
					<input type='checkbox' name='voter' value='true' />
					<br />

					<label for='checkbox'>Board Cache:</label>
					<input type='checkbox' name='board' value='true' />
					<br />

					<label for='checkbox'>Admin Log Cache:</label>
					<input type='checkbox' name='adminlog' value='true' />
					<br />

					<label for='checkbox'>Banned User Cache:</label>
					<input type='checkbox' name='banneduser' value='true' />

				</p>
		
				<br /><p><input type="submit" value="    Clear Selected Caches    " /></p>
		
			</form>

		
		</div>	

		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
		
	</body>
	
</html>
